Make gdk_visual_get_*_pixel_details work again
authorMatthias Clasen <mclasen@redhat.com>
Sat, 26 Mar 2016 13:32:51 +0000 (09:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Mar 2016 13:35:53 +0000 (09:35 -0400)
commit8206b824fa3cba5cbc7ddec0a1ccec7828f37dc5
tree4682c22d53e1f413315e6bbd3c51b6690c695f65
parent120c296ff6e349032f8753a5d1321def7070bd11
Make gdk_visual_get_*_pixel_details work again

These functions are supposed to return the numbers of consecutive
1 bits in each components mask as precision. However, due to a
copy-paste mistake when this code was moved around in
commit 70d689cddda0dc616af97e8ed047d0c0acf7c7a6, the precision
was always reported as zero. This affects only a few applications
that directly set window background on X11 windows, such as emacs.

https://bugzilla.gnome.org/show_bug.cgi?id=764210
gdk/gdkvisual.c